<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <title>自助小程序</title>

    {{template "template/css.html" .}}

</head>

<body>
<section id="container">
    <!-- **********************************************************************************************************************************************************
TOP BAR CONTENT & NOTIFICATIONS
*********************************************************************************************************************************************************** -->
    <!--header start-->
    {{template "template/header.html" .}}
    <!--header end-->
    <!-- **********************************************************************************************************************************************************
MAIN SIDEBAR MENU
*********************************************************************************************************************************************************** -->
    <!--sidebar start-->
    <aside>
        <div id="sidebar" class="nav-collapse ">
            <!-- sidebar menu start-->
            <ul class="sidebar-menu" id="nav-accordion">
                {{if IfOr .right }}
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="glyphicon glyphicon-home"></i>
                            <span>商户管理</span>
                        </a>
                        <ul class="sub">
                            <li>
                                <a href="/merchant/list_UI/">XF通道</a>
                            </li>
                        </ul>
                    </li>
                {{end}}
                {{/*                {{if IfOrB2C .right }}*/}}
                {{/*                    <li class="sub-menu">*/}}
                {{/*                        <a href="javascript:;">*/}}
                {{/*                            <i class="glyphicon glyphicon-flag"></i>*/}}
                {{/*                            <span>B2C业务</span>*/}}
                {{/*                        </a>*/}}
                {{/*                        <ul class="sub">*/}}

                {{/*                            <li>*/}}
                {{/*                                <a href="/transfer/show_transfer/">B2C转账</a>*/}}
                {{/*                            </li>*/}}
                {{/*                            <li>*/}}
                {{/*                                <a href="/transfer/show_transfer_record/">B2C转账记录</a>*/}}
                {{/*                            </li>*/}}

                {{/*                        </ul>*/}}
                {{/*                    </li>*/}}
                {{/*                {{end}}*/}}
                <li class="sub-menu">
                    <a href="javascript:;">
                        <i class="glyphicon glyphicon-eur"></i>
                        <span>自助充值</span>
                    </a>
                    <ul class="sub">
                        <li>
                            <a href="/merchant/show_recharge/">线下充值</a>
                        </li>
                        <li>
                            <a href="/merchant/show_bulk_recharge_ui/">批量充值</a>
                        </li>
                        <li>
                            <a href="/merchant/list_recharge/">充值记录</a>
                        </li>
                    </ul>
                </li>
                <li class="sub-menu">
                    <a href="javascript:;">
                        <i class="glyphicon glyphicon-share"></i>
                        <span>自助代付</span>
                    </a>
                    <ul class="sub">
                        <li>
                            <a href="/merchant/show_pay/">在线代付</a>
                        </li>
                        <li>
                            <a href="/merchant/show_bulk_pay_ui/">在线批量代付</a>
                        </li>
                        <li>
                            <a href="/merchant/list_pay_ui/">代付记录</a>
                        </li>
                    </ul>
                </li>
                <li class="sub-menu">
                    <a href="javascript:;">
                        <i class="glyphicon glyphicon-user"></i>
                        <span>个人信息</span>
                    </a>
                    <ul class="sub">
                        <li>
                            <a href="/merchant/edit_userInfo_ui/">修改信息</a>
                        </li>
                    </ul>
                </li>
                {{if IfOr .right }}
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="glyphicon glyphicon-piggy-bank"></i>
                            <span>管理员操作</span>
                        </a>
                        <ul class="sub">
                            <li>
                                <a href="/user/user_manage_ui/">用户管理</a>
                            </li>
                            <li>
                                <a href="/user/reconcile_ui/">对账管理</a>
                            </li>
                            <li>
                                <a href="/merchant/list_pMinus/">加减款明细</a>
                            </li>
                        </ul>
                    </li>
                {{end}}
            </ul>
            <!-- sidebar menu end-->
        </div>
    </aside>
    <!--sidebar end-->
    <!-- **********************************************************************************************************************************************************
MAIN CONTENT
*********************************************************************************************************************************************************** -->
    <!--main content start-->
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper site-min-height">
            <!-- page start-->
            <div class="chat-room mt">
                <aside class="mid-side">
                    <div class="chat-room-head">
                        <h3>个人信息展示</h3>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right">账户总金额</div>
                        <div class="second-part">{{Yuan2 .u.TotalAmount}} 元</div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part" align="right">账户可用金额</div>
                        <div class="second-part">{{Yuan2 .u.UsableAmount}} 元</div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right">账户冻结金额</div>
                        <div class="second-part">{{Yuan2 .u.FrozenAmount}} 元</div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part" align="right">今日线下充值金额</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="today_recharge">0</span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    {{/*                    <div class="group-rom">*/}}
                    {{/*                        <div class="first-part odd" align="right">今日B2C充值金额</div>*/}}
                    {{/*                        <div class="second-part">*/}}
                    {{/*                            <div class="form-inline">*/}}
                    {{/*                                <span id="today_b2c_free">0</span>*/}}
                    {{/*                                <span> 元</span>*/}}
                    {{/*                            </div>*/}}
                    {{/*                        </div>*/}}
                    {{/*                    </div>*/}}
                    <div class="group-rom">
                        <div class="first-part" align="right">今日充值总金额</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="today_recharge_all">0</span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right">今日提现金额</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="today_free">0</span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right"></div>
                        <div class="second-part" align="center">
                            <button class="btn btn-theme" type="button" onclick="index.show_user_info_btn();">校对
                            </button>
                            <span>今日充值、代付金额可能会有延迟，可点击校对</span>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part" align="right">充值单笔：<span id="recharge_fee">{{.u.RechargeFee}}</span> 元
                        </div>
                        <div class="second-part" id="today_free">
                            充值费率：<span id="recharge_rate">{{.u.RechargeRate}}</span> ‰（千分）
                            代付单笔：<span id="pay_fee">{{.u.PayFee}}</span> 元
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right">线下充值总笔数：<span id="recharge_count"></span> 笔</div>
                        <div class="second-part odd" id="today_free">
                            B2C充值总笔数：<span id="B2C_count"></span> 笔 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            代付总笔数：<span id="pay_count"></span> 笔
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part" align="right">线下充值总金额（含手续费）</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="all_line_recharge"></span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    {{/*                    <div class="group-rom">*/}}
                    {{/*                        <div class="first-part odd" align="right">B2C充值总金额（含手续费）</div>*/}}
                    {{/*                        <div class="second-part">*/}}
                    {{/*                            <div class="form-inline">*/}}
                    {{/*                                <span id="all_b2c_free"></span>*/}}
                    {{/*                                <span> 元</span>*/}}
                    {{/*                            </div>*/}}
                    {{/*                        </div>*/}}
                    {{/*                    </div>*/}}
                    <div class="group-rom">
                        <div class="first-part" align="right">充值总金额（含手续费）</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="all_today_recharge"></span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right">提现总金额（含手续费）</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="all_today_free"></span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part" align="right">总手续费</div>
                        <div class="second-part">
                            <div class="form-inline">
                                <span id="all_fee"></span>
                                <span> 元</span>
                            </div>
                        </div>
                    </div>
                    <div class="group-rom">
                        <div class="first-part odd" align="right"></div>
                        <div class="second-part">
                            <div class="form-inline">
                                <label>开始时间：</label>
                                <div class='input-group date'>
                                    <input type='text' id='start2' class="form-control"/>
                                    <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                            </span>
                                </div>
                                <label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                <label>结束时间：</label>
                                <div class='input-group date'>
                                    <input type='text' id='end2' class="form-control"/>
                                    <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                            </span>
                                </div>
                                <button class="btn btn-warning" type="button" onclick="index.count_all_recharge_btn();">
                                    统计
                                </button>
                                <button class="btn btn-success" type="button" onclick="index.make_excel_for_record();">
                                    导出Excel表
                                </button>
                            </div>
                        </div>
                    </div>
                </aside>
            </div>
            <!-- page end-->
        </section>
        <!-- /wrapper -->
    </section>
    <!-- /MAIN CONTENT -->
    <!--main content end-->

    <!--footer start-->
    <footer class="site-footer">
        <div class="text-center">
            <p>
                &copy; Copyrights <strong>Joker</strong>. All Rights Reserved.
            </p>
        </div>
    </footer>
    <!--footer end-->
</section>
{{template "template/js.html" .}}

<script type="application/javascript">
    $(function () {
        toastr.options.positionClass = 'toast-top-center';

        $("#start2").datetimepicker({
            format: 'yyyy-mm-dd hh:ii:ss',
            autoclose: true,
            todayBtn: true,
            startDate: "2019-4-10 18:45:06",
            minuteStep: 20
        });
        $("#end2").datetimepicker({
            format: 'yyyy-mm-dd hh:ii:ss',
            autoclose: true,
            todayBtn: true,
            startDate: "2019-4-10 18:45:06",
            minuteStep: 20
        });

        index.show_user_info();
    });
</script>
</body>
</html>